package com.cloud.lawcase.common.result;

import java.util.HashMap;
import java.util.Map;

public class Quokka {
	private boolean ok;
	private String message;
	private Object data = null;
	private Map<String, Object> dataMap = new HashMap<String, Object>();

	public Quokka(){}
	
	public Quokka(boolean ok) {
		this.ok = ok;
	}

	public Quokka(String key, Object object) {
		this.ok = true;
		this.data = object;
	}

	public Quokka(boolean ok, String key, Object object) {
		this.ok = ok;
		this.dataMap.put(key, object);
	}

	public Quokka(boolean ok, Object object) {
		this.ok = ok;
		this.data = object;
	}
	
	public boolean isOk() {
		return ok;
	}

	public void setOk(boolean ok) {
		this.ok = ok;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Map<String, Object> getDataMap() {
		return dataMap;
	}

	public void setDataMap(Map<String, Object> dataMap) {
		this.dataMap = dataMap;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
